
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5.2.html" />
    
    
    <link rel="prev" href="5.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <a target="_blank" href="https://github.com/xfl03/CoreModTutor">
            
                    
                    源代码仓库（求star）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="0.html">
            
                <a href="0.html">
            
                    
                    0 绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    1 简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="1.1.html">
            
                <a href="1.1.html">
            
                    
                    CoreMod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="1.2.html">
            
                <a href="1.2.html">
            
                    
                    Java虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="1.3.html">
            
                <a href="1.3.html">
            
                    
                    Minecraft混淆方式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    2 Java虚拟机
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    ClassLoader类加载器
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    ByteCode字节码
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    ASM
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    3 原版 CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="3.1.html">
            
                <a href="3.1.html">
            
                    
                    直接修改class文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="3.2.html">
            
                <a href="3.2.html">
            
                    
                    JavaAgent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="3.3.html">
            
                <a href="3.3.html">
            
                    
                    LaunchWrapper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="3.4.html">
            
                <a href="3.4.html">
            
                    
                    ModLauncher
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    4 FML CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="4.1.html">
            
                <a href="4.1.html">
            
                    
                    1.3.2-1.5.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="4.2.html">
            
                <a href="4.2.html">
            
                    
                    1.6.1-1.12.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="4.3.html">
            
                <a href="4.3.html">
            
                    
                    1.13.2-1.14.4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="5.html">
            
                <a href="5.html">
            
                    
                    5 Mixin
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.8.1" data-path="5.1.html">
            
                <a href="5.1.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="5.2.html">
            
                <a href="5.2.html">
            
                    
                    引导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="5.3.html">
            
                <a href="5.3.html">
            
                    
                    注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="5.4.html">
            
                <a href="5.4.html">
            
                    
                    修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="5.5.html">
            
                <a href="5.5.html">
            
                    
                    定位
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="5.6.html">
            
                <a href="5.6.html">
            
                    
                    融合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="5.7.html">
            
                <a href="5.7.html">
            
                    
                    扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="5.8.html">
            
                <a href="5.8.html">
            
                    
                    调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    附录
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="附录A.html">
            
                <a href="附录A.html">
            
                    
                    附录A 相关工具下载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="附录B.html">
            
                <a href="附录B.html">
            
                    
                    附录B 常见Java字节码指令表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="附录C.html">
            
                <a href="附录C.html">
            
                    
                    附录C 参考资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x914D;&#x7F6E;">&#x914D;&#x7F6E;</h1>
<p>&#x7531;&#x4E8E;<code>Mixin-0.7.11</code>&#x8FD8;&#x4E0D;&#x652F;&#x6301;&#x4F7F;&#x7528;<code>Forge 1.13+</code>&#x7684;<code>ModLauncher</code>&#x5F15;&#x5BFC;&#xFF0C;&#x6240;&#x4EE5;&#x672C;&#x6559;&#x7A0B;&#x4EE5;<code>Forge 1.12.2-14.23.5.2838</code>&#x4E3A;&#x4F8B;&#x3002;</p>
<h2 id="&#x914D;&#x7F6E;buildgradle">&#x914D;&#x7F6E;<code>build.gradle</code></h2>
<ul>
<li><p>&#x5728;<code>buildscript</code>&#x4E2D;&#x6DFB;&#x52A0;Sponge&#x7684;Maven&#x4ED3;&#x5E93;&#xFF0C;&#x5E76;&#x5E94;&#x7528;<a href="https://github.com/SpongePowered/MixinGradle" target="_blank">MixinGradle</a>&#x63D2;&#x4EF6;&#x3002;</p>
<pre><code class="lang-gradle"><span class="hljs-keyword">buildscript</span> {
  <span class="hljs-keyword">repositories</span> {
      jcenter()
      maven { url = <span class="hljs-string">&quot;https://files.minecraftforge.net/maven&quot;</span> }
      maven { url = <span class="hljs-string">&quot;https://repo.spongepowered.org/maven&quot;</span> }
  }
  <span class="hljs-keyword">dependencies</span> {
      <span class="hljs-keyword">classpath</span> <span class="hljs-string">&apos;net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT&apos;</span>
      <span class="hljs-keyword">classpath</span> <span class="hljs-string">&apos;org.spongepowered:mixingradle:0.6-SNAPSHOT&apos;</span>
  }
}
apply plugin: <span class="hljs-string">&apos;net.minecraftforge.gradle.forge&apos;</span>
apply plugin: <span class="hljs-string">&apos;org.spongepowered.mixin&apos;</span>
</code></pre>
</li>
<li><p>&#x5728;<code>repositories</code>&#x4E2D;&#x6DFB;&#x52A0;Sponge&#x7684;Maven&#x4ED3;&#x5E93;&#x3002;</p>
<pre><code class="lang-gradle"><span class="hljs-keyword">repositories</span> {
  maven { url = <span class="hljs-string">&quot;https://repo.spongepowered.org/maven&quot;</span> }
}
</code></pre>
</li>
<li><p>&#x5728;<code>dependencies</code>&#x4E2D;&#x6DFB;&#x52A0;&#x5BF9;Mixin&#x7684;&#x4F9D;&#x8D56;&#xFF0C;&#x5E76;&#x6392;&#x9664;Minecraft&#x4E2D;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5E93;&#x3002;</p>
<pre><code class="lang-gradle"><span class="hljs-keyword">dependencies</span> {
  provided(<span class="hljs-string">&apos;org.spongepowered:mixin:0.7.11-SNAPSHOT&apos;</span>) {
      <span class="hljs-keyword">exclude</span> module: <span class="hljs-string">&apos;guava&apos;</span>
      <span class="hljs-keyword">exclude</span> module: <span class="hljs-string">&apos;commons-io&apos;</span>
      <span class="hljs-keyword">exclude</span> module: <span class="hljs-string">&apos;gson&apos;</span>
  }
}
</code></pre>
</li>
<li><p>&#x7531;&#x4E8E;Forge&#x5E76;&#x4E0D;&#x5F15;&#x7528;Mixin&#xFF0C;&#x5E76;&#x4E14;&#x65E0;&#x6CD5;&#x4FDD;&#x8BC1;&#x73A9;&#x5BB6;&#x6DFB;&#x52A0;&#x7684;&#x6A21;&#x7EC4;&#x4E00;&#x5B9A;&#x4F1A;&#x5305;&#x542B;Mixin&#xFF0C;&#x6240;&#x4EE5;&#x9700;&#x8981;&#x5728;&#x6A21;&#x7EC4;&#x6253;&#x5305;&#x65F6;&#x628A;Mixin&#x4E00;&#x5E76;&#x6253;&#x5305;&#x8FDB;&#x6A21;&#x7EC4;jar&#x5305;&#x4E2D;&#x3002;<br>&#x5728;<code>jar</code>&#x4E2D;&#x628A;&#x5F15;&#x7528;&#x7684;Mixin&#x6253;&#x5305;&#x8FDB;&#x53BB;&#x3002;&#x7531;&#x4E8E;Mixin&#x9700;&#x8981;&#x7528;Tweaker&#x5F15;&#x5BFC;&#xFF08;&#x53C2;&#x89C1;<a href="5.2.html">&#x5F15;&#x5BFC;Mixin</a>&#xFF09;&#xFF0C;&#x6240;&#x4EE5;&#x8FD8;&#x9700;&#x8981;&#x6DFB;&#x52A0;TweakClass</p>
<pre><code class="lang-gradle">jar {
  <span class="hljs-keyword">from</span> <span class="hljs-keyword">configurations</span>.provided.asFileTree.files.<span class="hljs-keyword">collect</span> {
      zipTree(it)
  }

  manifest.attributes([
      <span class="hljs-string">&quot;TweakClass&quot;</span>: <span class="hljs-string">&quot;com.example.ExampleTweaker&quot;</span>
  ])
}
</code></pre>
</li>
<li><p>MixinGradle&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x95ED;&#x5305;&#xFF1A;<code>mixin</code>&#xFF0C;&#x5176;&#x6240;&#x6709;&#x53EF;&#x914D;&#x7F6E;&#x9879;&#x53C2;&#x8003;<a href="https://github.com/SpongePowered/MixinGradle/blob/master/src/main/groovy/org/spongepowered/asm/gradle/plugins/MixinExtension.groovy" target="_blank">&#x8FD9;&#x91CC;</a>&#x3002;<br>&#x4E00;&#x4E2A;&#x6700;&#x57FA;&#x672C;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#xFF1A;&#xFF08;Mixin &#x6DF7;&#x6DC6;&#x6620;&#x5C04;&#x6587;&#x4EF6;&#x5EFA;&#x8BAE;&#x4EE5;<code>mixins.&lt;modid&gt;.refmap.json</code>&#x7684;&#x5F62;&#x5F0F;&#x547D;&#x540D;&#xFF09;</p>
<pre><code class="lang-gradle">mixin {
  add <span class="hljs-keyword">sourceSets</span>.main, <span class="hljs-string">&quot;mixins.example.refmap.json&quot;</span>
}
</code></pre>
<p><strong>&#x9700;&#x8981;&#x8BF4;&#x660E;&#x7684;&#x662F;&#xFF0C;&#x6B63;&#x662F;&#x56E0;&#x4E3A;&#x6709;&#x4E86;&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x5728;&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x65F6;&#x57FA;&#x672C;&#x4E0D;&#x9700;&#x8981;&#x8FC7;&#x591A;&#x5730;&#x8003;&#x8651;&#x6DF7;&#x6DC6;&#x7684;&#x95EE;&#x9898;&#xFF0C;&#x65E0;&#x8BBA;&#x662F;&#x5728;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x8FD8;&#x662F;&#x751F;&#x4EA7;&#x73AF;&#x5883;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x6309;&#x7167;mcp name&#x5199;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;</strong></p>
</li>
<li><p>&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#x540E;&#x5373;&#x53EF;&#x5F00;&#x59CB;&#x6784;&#x5EFA;Forge&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x3002;</p>
</li>
</ul>
<h2 id="&#x914D;&#x7F6E;json&#x6587;&#x4EF6;">&#x914D;&#x7F6E;json&#x6587;&#x4EF6;</h2>
<ul>
<li>&#x5728;<code>src/main/resources</code>&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;json&#x6587;&#x4EF6;&#xFF0C;&#x63A8;&#x8350;&#x547D;&#x540D;&#x4E3A;<code>mixins.&lt;modid&gt;.json</code></li>
<li>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x6240;&#x6709;&#x53EF;&#x914D;&#x7F6E;&#x9879;&#x53C2;&#x8003;<a href="https://github.com/SpongePowered/Mixin/blob/master/src/main/java/org/spongepowered/asm/mixin/transformer/MixinConfig.java" target="_blank">&#x8FD9;&#x91CC;</a>&#x3002;</li>
<li>&#x5728;<a href="https://github.com/SpongePowered/Mixin/wiki/Introduction-to-Mixins---The-Mixin-Environment" target="_blank">Wiki</a>&#x4E2D;&#x7684;&#x76F8;&#x5173;&#x5C5E;&#x6027;&#x89E3;&#x91CA;&#xFF1A;<ul>
<li><code>package</code>: Mixin&#x6CE8;&#x5165;&#x7C7B;&#x6240;&#x5728;&#x7684;&#x7236;&#x5305;&#xFF0C;&#x8FD9;&#x4E2A;&#x5305;&#x5C06;&#x4F1A;&#x88AB;&#x6DFB;&#x52A0;&#x5230;<code>LaunchClassLoader</code>&#x7684;<code>transformerExceptions</code>&#x4E2D;&#x53BB;&#xFF1B;</li>
<li><code>mixins</code>: &#x5BA2;&#x6237;&#x7AEF;&#x548C;&#x670D;&#x52A1;&#x7AEF;&#x90FD;&#x8FD0;&#x884C;&#x7684;Mixin&#x6CE8;&#x5165;&#x7C7B;&#xFF08;&#x586B;&#x5199;&#x76F8;&#x5BF9;&#x4E8E;<code>package</code>&#x5C5E;&#x6027;&#x7684;&#x5168;&#x7C7B;&#x540D;&#xFF0C;&#x4E0B;&#x540C;&#xFF09;&#xFF1B;</li>
<li><code>client</code>: &#x4EC5;&#x5728;&#x5BA2;&#x6237;&#x7AEF;&#x8FD0;&#x884C;&#x7684;Mixin&#x6CE8;&#x5165;&#x7C7B;&#xFF1B;</li>
<li><code>server</code>: &#x4EC5;&#x5728;&#x670D;&#x52A1;&#x7AEF;&#x8FD0;&#x884C;&#x7684;Mixin&#x6CE8;&#x5165;&#x7C7B;&#xFF1B;</li>
<li><code>refmap</code>: &#x6307;&#x5B9A;Mixin&#x7684;&#x6DF7;&#x6DC6;&#x6620;&#x5C04;json&#x6587;&#x4EF6;&#x540D;&#xFF08;&#x9700;&#x8981;&#x4E0E;MixinGradle&#x4E2D;&#x8BBE;&#x7F6E;&#x7684;&#x4E00;&#x81F4;&#xFF09;&#xFF1B;</li>
<li><code>priority</code>: &#x6307;&#x5B9A;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x88AB;&#x8F7D;&#x5165;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;1000&#xFF1B;</li>
<li><code>plugin</code>: &#x6307;&#x5B9A;Mixin&#x63D2;&#x4EF6;&#x7C7B;&#x540D;&#xFF0C;&#x8FD9;&#x4E2A;&#x7C7B;&#x9700;&#x8981;&#x5B9E;&#x73B0; <a href="https://github.com/SpongePowered/Mixin/blob/master/src/main/java/org/spongepowered/asm/mixin/extensibility/IMixinConfigPlugin.java" target="_blank"><code>IMixinConfigPlugin</code></a> &#x63A5;&#x53E3;&#xFF0C;&#x8FD9;&#x4E2A;&#x63D2;&#x4EF6;&#x5141;&#x8BB8;&#x7A0B;&#x5E8F;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#x4FEE;&#x6539;Mixin&#x914D;&#x7F6E;&#xFF08;&#x53C2;&#x8003;<a href="5.6.html">&#x6269;&#x5C55;</a>&#xFF09;&#xFF1B;</li>
<li><code>required</code>: &#x51B3;&#x5B9A;&#x662F;&#x5426;&#x786E;&#x4FDD;&#x6240;&#x6709;Mixin&#x6CE8;&#x5165;&#x7C7B;&#x90FD;&#x80FD;&#x627E;&#x5230;&#x76EE;&#x6807;&#x7C7B;&#xFF0C;&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x4E3A;<code>true</code>&#xFF0C;&#x4E00;&#x65E6;&#x672A;&#x80FD;&#x627E;&#x5230;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x4F1A;&#x629B;&#x51FA;&#x5F02;&#x5E38;&#x5E76;&#x7EC8;&#x6B62;&#x6E38;&#x620F;&#x8FD0;&#x884C;&#xFF1B;</li>
<li><code>minVersion</code>: &#x6307;&#x5B9A;&#x6240;&#x4F7F;&#x7528;&#x7684;Mixin&#x529F;&#x80FD;&#x51FA;&#x73B0;&#x7684;&#x6700;&#x4F4E;&#x7248;&#x672C;&#xFF0C;&#x5982;&#x679C;&#x8FD0;&#x884C;&#x4E2D;&#x7684;Mixin&#x7248;&#x672C;&#x4F4E;&#x4E8E;&#x8BE5;&#x7248;&#x672C;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x4F1A;&#x5FFD;&#x7565;&#x9AD8;&#x7248;&#x672C;Mixin&#x4E2D;&#x7684;&#x529F;&#x80FD;&#xFF1B;</li>
<li><code>setSourceFile</code>: &#x51B3;&#x5B9A;&#x662F;&#x5426;&#x8BA9;&#x6CE8;&#x5165;&#x7C7B;&#x8986;&#x76D6;&#x76EE;&#x6807;&#x7C7B;&#x7684; <code>source file</code> &#x5C5E;&#x6027;&#xFF0C;&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x4E3A;<code>true</code>&#xFF0C;&#x6211;&#x4EEC;&#x5927;&#x6982;&#x80FD;&#x5728;&#x6253;&#x5370;&#x8C03;&#x7528;&#x5806;&#x6808;&#x65F6;&#x770B;&#x5230;<pre><code>  at net.minecraft.client.gui.GuiMainMenu.func_73863_a(MixinGuiMainMenu.java:514)
</code></pre>  &#x800C;&#x4E0D;&#x662F;&#x539F;&#x5148;&#x7684;<pre><code>  at net.minecraft.client.gui.GuiMainMenu.func_73863_a(GuiMainMenu.java:514)
</code></pre></li>
</ul>
</li>
<li>&#x4E00;&#x4E2A;&#x6700;&#x57FA;&#x672C;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5982;&#x4E0B;&#xFF1A;<pre><code class="lang-json">{
<span class="hljs-string">&quot;package&quot;</span>: <span class="hljs-string">&quot;com.example.mixins&quot;</span>,
<span class="hljs-string">&quot;mixins&quot;</span>: [],
<span class="hljs-string">&quot;client&quot;</span>: [],
<span class="hljs-string">&quot;server&quot;</span>: []
}
</code></pre>
</li>
</ul>
<h2 id="&#x914D;&#x7F6E;ide">&#x914D;&#x7F6E;IDE</h2>
<ul>
<li>&#x5728;&#x6784;&#x5EFA;Forge&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E4B;&#x540E;&#x914D;&#x7F6E;IDE&#x3002;&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x7F16;&#x5199;Mixin&#x6CE8;&#x89E3;&#x65F6;&#x81EA;&#x52A8;&#x68C0;&#x67E5;&#x6CE8;&#x89E3;&#x7684;&#x5408;&#x6CD5;&#x6027;&#x3002;</li>
</ul>
<h3 id="eclipse">Eclipse</h3>
<ol>
<li>&#x4E0B;&#x8F7D;<a href="https://github.com/SpongePowered/Mixin/archive/master.zip" target="_blank">Mixin</a>&#x9879;&#x76EE;&#x6E90;&#x4EE3;&#x7801;&#x4ED3;&#x5E93;</li>
<li>&#x5728;Mixin&#x9879;&#x76EE;&#x4E0B;&#x8FD0;&#x884C; <code>./gradlew build</code> &#x547D;&#x4EE4;&#x6765;&#x7F16;&#x8BD1;&#x751F;&#x6210;Mixin&#x7684;jar&#x5305;</li>
<li>&#x6253;&#x5F00;&#x9879;&#x76EE;&#x5C5E;&#x6027;&#xFF0C;&#x5E76;&#x5B9A;&#x4F4D;&#x5230; <code>Java &#x7F16;&#x8BD1;&#x5668; -&gt; &#x6CE8;&#x89E3;&#x5904;&#x7406; -&gt; &#x5DE5;&#x5382;&#x8DEF;&#x5F84;</code></li>
<li>&#x52FE;&#x9009; <code>&#x542F;&#x7528;&#x7279;&#x5B9A;&#x4E8E;&#x9879;&#x76EE;&#x7684;&#x8BBE;&#x7F6E;</code> &#x590D;&#x9009;&#x6846;</li>
<li>&#x5355;&#x51FB; <code>&#x6DFB;&#x52A0;&#x5916;&#x90E8;JAR...</code> &#x6309;&#x94AE;&#xFF0C;&#x5E76;&#x9009;&#x62E9;&#x521A;&#x521A;&#x7F16;&#x8BD1;&#x751F;&#x6210;&#x597D;&#x7684;&#x5E26; <strong>-processor</strong> &#x540E;&#x7F00;&#x7684;jar&#x5305;&#xFF08;&#x5E94;&#x8BE5;&#x4F4D;&#x4E8E;<code>Mixin-master/build/libs</code>&#x6587;&#x4EF6;&#x5939;&#x5185;&#xFF09;</li>
<li>&#x5B9A;&#x4F4D;&#x5230; <code>Java &#x7F16;&#x8BD1;&#x5668; -&gt; &#x6CE8;&#x89E3;&#x5904;&#x7406;</code></li>
<li>&#x52FE;&#x9009; <code>&#x542F;&#x7528;&#x7279;&#x5B9A;&#x4E8E;&#x9879;&#x76EE;&#x7684;&#x8BBE;&#x7F6E;</code> &#x590D;&#x9009;&#x6846;</li>
<li>&#x52FE;&#x9009; <code>&#x542F;&#x7528;&#x6CE8;&#x89E3;&#x5904;&#x7406;</code> &#x590D;&#x9009;&#x6846;</li>
<li>&#x5355;&#x51FB; <code>&#x65B0;&#x5EFA;...</code> &#x6309;&#x94AE;<ul>
<li>&#x8BBE;&#x7F6E; <code>&#x952E;</code> &#x4E3A; <code>reobfSrgFile</code></li>
<li>&#x8BBE;&#x7F6E; <code>&#x503C;</code> &#x4E3A; <code>mcp-srg.srg</code> &#x6587;&#x4EF6;&#x7684;&#x5B8C;&#x6574;&#x8DEF;&#x5F84;&#xFF08;&#x5BF9;&#x4E8E;Forge 1.12.2-14.23.5.2838 &#x4EE5;&#x53CA;&#x5728;&#x4E0D;&#x4FEE;&#x6539;&#x9ED8;&#x8BA4; <code>mappings</code> &#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6B64;&#x6587;&#x4EF6;&#x5E94;&#x8BE5;&#x4F4D;&#x4E8E;  <code>%GRADLE_USER_HOME%\caches\minecraft\de\oceanlabs\mcp\mcp_snapshot\20171003\1.12.2\srgs</code> &#x6587;&#x4EF6;&#x5939;&#x5185;&#xFF09;</li>
</ul>
</li>
<li>&#x5355;&#x51FB; <code>&#x5E94;&#x7528;&#x5E76;&#x5173;&#x95ED;</code> &#x6309;&#x94AE;&#x5373;&#x53EF;</li>
</ol>
<h3 id="intellij-idea">IntelliJ IDEA</h3>
<ul>
<li>&#x5B89;&#x88C5;&#x7531;<a href="https://github.com/demonwav" target="_blank">DemonWav</a>&#x5F00;&#x53D1;&#x7684;<a href="https://plugins.jetbrains.com/plugin/8327-minecraft-development" target="_blank">Minecraft Development for IntelliJ IDEA</a>&#x63D2;&#x4EF6;&#x5373;&#x53EF;&#x3002;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="5.html" class="navigation navigation-prev " aria-label="Previous page: 5 Mixin">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5.2.html" class="navigation navigation-next " aria-label="Next page: 引导">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置","level":"1.8.1","depth":2,"next":{"title":"引导","level":"1.8.2","depth":2,"path":"5.2.md","ref":"5.2.md","articles":[]},"previous":{"title":"5 Mixin","level":"1.8","depth":1,"path":"5.md","ref":"5.md","articles":[{"title":"配置","level":"1.8.1","depth":2,"path":"5.1.md","ref":"5.1.md","articles":[]},{"title":"引导","level":"1.8.2","depth":2,"path":"5.2.md","ref":"5.2.md","articles":[]},{"title":"注入","level":"1.8.3","depth":2,"path":"5.3.md","ref":"5.3.md","articles":[]},{"title":"修改","level":"1.8.4","depth":2,"path":"5.4.md","ref":"5.4.md","articles":[]},{"title":"定位","level":"1.8.5","depth":2,"path":"5.5.md","ref":"5.5.md","articles":[]},{"title":"融合","level":"1.8.6","depth":2,"path":"5.6.md","ref":"5.6.md","articles":[]},{"title":"扩展","level":"1.8.7","depth":2,"path":"5.7.md","ref":"5.7.md","articles":[]},{"title":"调试","level":"1.8.8","depth":2,"path":"5.8.md","ref":"5.8.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"5.1.md","mtime":"2019-09-08T00:42:29.873Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-08T04:47:05.818Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

